Structured light active depth sensing systems combining multiple images to compensate for differences in reflectivity and/or absorption

ABSTRACT

A receiver sensor captures a plurality of images, at two or more (different) exposure times, of a scene onto which a code mask is projected. The two or more of the plurality of images are combined by extracting decodable portions of the code mask from each image to generate a combined image. Alternatively, two receiver sensors, each at a different exposure time, are used to capture a plurality of images. The first and second images are then combined by extracting decodable portions of the code mask from each image to generate a combined image. Depth information for the scene may then be ascertained based on the combined image and using the code mask.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application for patent claims priority to U.S. ProvisionalApplications No. 61/726,387 filed Nov. 14, 2012, which is herebyexpressly incorporated by reference.

BACKGROUND

Field

Various features pertain to active depth sensing and more specificallyto techniques to compensate for different reflectivity/absorptioncoefficients of objects in a scene when performing active depth sensingsystem using structured light.

Background

In active sensing, a known pattern (e.g., code mask) is used toilluminate a scene or object in process often referred to as “structuredlight”. The structure of the pattern projected on the scene or objectencodes depth information for the scene or object. Once the pattern isfound in a received image, the 3-dimensional scene or object may bereconstructed. The relationship between the known projected pattern andthe decoded one can be used to derive depth information on the capturedscene.

A receiver/camera sensor may capture an image of a scene from theincident light coming from a reflection of a light source onto the scene(e.g., person, object, location, etc.). The intensity of the incidentlight may depend on: (a) the reflectance properties of the surfaces inthe scene, (b) the power of the light that generates the projectedpattern, and/or (c) ambient light. If the incident light on the camerasensor is too strong, it saturates the sensor. If it is too weak, thecamera sensor does not capture the variations in reflectivity of thescene. Even within a scene, depending on the type of surfaces beingcaptured in an image, both situations (e.g., captured light too strongand too weak) can happen at the same time. If no adjustment to thestrength of incident light is included in the system, it's impossible tocapture the variations in illumination of the projected pattern (e.g.,code mask) for a wide range of situations (different ambient lights,different pre-set power of the light source, different surface types).

Consequently, a solution is needed to compensate for variations inincident light intensity when performing depth sensing of a scene usinga structured light system.

SUMMARY

The following presents a simplified summary of one or more aspects ofthe present disclosure, in order to provide a basic understanding ofsuch aspects. This summary is not an extensive overview of allcontemplated features of the disclosure, and is intended neither toidentify key or critical elements of all aspects of the disclosure norto delineate the scope of any or all aspects of the disclosure. Its solepurpose is to present some concepts of one or more aspects of thedisclosure in a simplified form as a prelude to the more detaileddescription that is presented later.

A device adapted to compensate for differences in surface reflectivityin an active depth sensing system using structured light. The device mayinclude a receiver sensor and a processing circuit. The receiver sensormay serve to capture a plurality of images of a scene onto which a codemask is projected, where the receiver sensor captures the plurality ofimages at two or more exposure times. The processing circuit may beadapted to combine the two or more of the plurality of images byextracting decodable portions of the code mask from each image togenerate a combined image. Additionally, the processing circuit isfurther adapted to ascertain depth information for the scene based onthe combined image and using the code mask.

In one example, the processing circuit may be further adapted to: (a)ascertain one or more parameters from the captured plurality of images;and/or (b) dynamically adjust the exposure time for the receiver sensoraccording to the one or more parameters to improve decoding of the codemask in a plurality of subsequently captured images.

The receiver sensor may be adapted to: (a) capture, using a firstexposure time, a first image of the scene onto which the code mask isprojected; and/or (b) capture, using a second exposure time, a secondimage of the scene onto which the code mask is projected, where thesecond exposure time is selected to either reduce over exposure or underexposure in the first image.

Similarly, a method to compensate for differences in surfacereflectivity in an active depth sensing system using structured lightmay also be provided. A plurality of images of a scene onto which a codemask is projected may be captured, where the receiver sensor capturesthe plurality of images at two or more exposure times. The two or moreof the plurality of images may be combined by extracting decodableportions of the code mask from each image to generate a combined image.Depth information for the scene may be ascertained based on the combinedimage and using the code mask.

In one example, one or more parameters may be ascertained from thecaptured plurality of images. Then, the exposure time for the receiversensor may be dynamically adjust according to the one or more parametersto improve decoding of the code mask in a plurality of subsequentlycaptured images.

Another feature may include: (a) capturing, using a first exposure time,a first image of the scene onto which the code mask is projected; and/or(b) capturing, using a second exposure time, a second image of the sceneonto which the code mask is projected, where the second exposure time isselected to either reduce over exposure or under exposure in the firstimage.

Another implementation provides a device adapted to compensate fordifferences in surface reflectivity in an active depth sensing systemusing structured light. The device may include a first receiver, asecond receiver, and a processing circuit. The first receiver sensor mayserve to capture a first image of a scene onto which a code mask isprojected, where the first receiver sensor captures the first image at afirst exposure time. The second receiver sensor may serve to capture asecond image of the scene onto which a code mask is projected, where thesecond receiver sensor captures the second image at a second exposuretime. The processing circuit may be adapted to combine the first andsecond images by extracting decodable portions of the code mask fromeach image to generate a combined image.

The processing circuit may also be adapted to ascertain depthinformation for the scene based on the combined image and using the codemask.

In various implementations, the first and second images may be capturedcontemporaneously and/or at the same illumination level for the codemask.

A method to compensate for differences in surface reflectivity in anactive depth sensing system using structured light is also provided. Themethod may (a) capture, using a first receiver sensor, a first image ofa scene onto which a code mask is projected, where the first receiversensor captures the first image at a first exposure time; (b) capture,using a second receiver sensor, a second image of the scene onto which acode mask is projected, where the second receiver sensor captures thesecond image at a second exposure time; (c) combine the first and secondimages by extracting decodable portions of the code mask from each imageto generate a combined image; and/or (d) ascertain depth information forthe scene based on the combined image and using the code mask.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other sample aspects of the disclosure will be described inthe detailed description that follow, and in the accompanying drawings.

FIG. 1 illustrates a system for active sensing where a 3-dimensional(3D) scene is constructed from 2-dimensional (2D) images or information.

FIG. 2 illustrates active sensing where a known pattern is used toilluminate a scene or object and obtain depth information with which togenerate 3-dimensional information from 2-dimensional images and/orinformation.

FIG. 3 illustrates how depth may be sensed for an object or scene.

FIG. 4 illustrates an exemplary code mask 400 that uses three gray-scalelevels (e.g., black, white, and a gray).

FIG. 5 illustrates at least two methods for adjusting light energyreceived by a receiver sensor in an active depth sensing system usingstructured light.

FIG. 6 illustrates at least two methods for adjusting light energyreceived by a receiver sensor in an active depth sensing system usingstructured light.

FIG. 7 illustrates another method for adjusting light energy received bya receiver sensor in an active depth sensing system using structuredlight.

FIG. 8 illustrates an exemplary depth sensing system using structuredlight that dynamically adjusts for different reflectivity/absorptioncoefficients of the surfaces of objects in a scene being captured.

FIG. 9 illustrates how a binary codeword may be represented within ashape modulated carrier.

FIG. 10 illustrates further details of the code microstructure using acarrier layer and code layer.

DETAILED DESCRIPTION

In the following description, specific details are given to provide athorough understanding of the embodiments. However, it will beunderstood by one of ordinary skill in the art that the embodiments maybe practiced without these specific detail. For example, circuits may beshown in block diagrams in order to avoid obscuring the embodiments inunnecessary detail. In other instances, well-known circuits, structuresand techniques may not be shown in detail in order not to obscure theembodiments.

The word “exemplary” is used herein to mean “serving as an example,instance, or illustration.” Any implementation or embodiment describedherein as “exemplary” is not necessarily to be construed as preferred oradvantageous over other embodiments. Likewise, the term “embodiments”does not require that all embodiments include the discussed feature,advantage or mode of operation.

Overview

Techniques are provided to compensate for differentreflectivity/absorption coefficients of objects in a scene whenperforming active depth sensing using structured light. Various featuresare provided that dynamically adjust to, and compensate for, variationsin the reflectivity/absorption of objects in a scene being captured.

A first feature provides a receiver sensor that captures an image of ascene onto which a code mask is projected. One or more parameters areascertained from the captured image. Then a light source power for aprojecting light source is dynamically adjusted according to the one ormore parameters to improve decoding of the code mask in a subsequentlycaptured image. Depth information for the scene may then be ascertainedbased on the captured image based on the code mask. In one example, thelight source power is fixed at a particular illumination while anexposure time for the receiver sensor is adjusted. In another example,an exposure time for the receiver sensor is maintained/kept at a fixedvalue while the light source power is adjusted.

A second feature provides a receiver sensor that captures a plurality ofimages, at two or more (different) exposure times, of a scene onto whicha code mask is projected. The two or more of the plurality of images arecombined by extracting decodable portions of the code mask from eachimage to generate a combined image. Depth information for the scene maythen be ascertained based on the combined image and using the code mask.

A third feature provides for using two receiver sensors at a differentexposure time each to capture a scene or object. A first receiver sensorcaptures a first image, at a first exposure time, of a scene onto whicha code mask is projected. A second receiver sensor captures a secondimage, at a second exposure time, of the scene onto which the code maskis projected. The first and second images are then combined byextracting decodable portions of the code mask from each image togenerate a combined image. Depth information for the scene may then beascertained based on the combined image and using the code mask.

Active Depth Sensing

FIG. 1 illustrates a system for active sensing where a 3-dimensional(3D) scene is constructed from 2-dimensional (2D) images or information.One or more features for compensating for differentreflectivity/absorption coefficients of objects in a scene whenperforming active depth sensing system using structured light. Anencoder/shape modulator 100 may serve to generate a code mask which isthen projected by a transmitter device 102 over a transmission channel104. The code mask may be projected onto a target (e.g., a scene orobject) and the reflected light is captured by a receiver sensor 105 asan image (e.g., code mask image). This received image may be decoded 106and used to present, generate, and/or provide a 3-dimensional version110 a-e of the target. Active sensing relies on being able to recognizeall spatial codes (i.e., codewords) from the code mask being projectedon the target. Various features and aspects described herein may beimplemented as part of the system and device(s) illustrated herein.

FIG. 2 illustrates active sensing where a known pattern is used toilluminate a scene or object and obtain depth information with which togenerate 3-dimensional information from 2-dimensional images and/orinformation. Here, a transmitter 202 projects a light field through acode mask 204 (e.g., image with codes) to project codewords on an objector scene 206. A receiver 208 (e.g., camera sensor) captures theprojected code mask 210 and codewords therein. This example illustrateshow a section/portion/window 212 of the code mask 204 is projected (assection/portion/window 214) onto the surface (e.g., projectedsection/portion/window 216) of the object or scene 206. The projectedsection/portion/window 216 may then be captured by the receiver 108 as acaptured segment 218. The section/portion/window 212 may be used as acodeword that can be uniquely identified. Thus, by covering the scene orobject 206 with unique codewords in this manner, sections/portions ofthe scene or object 206 may be identified/tagged and this informationmay be used for depth sensing.

From the image captured by the receiver 208 (camera sensor), multiplesegments may be identified over the scene or object 206. Each segment218 may be uniquely identifiable at the receiver 108 and its locationrelative to other segments ascertained from the known pattern of thecoded mask 204. The identification of a code from eachsegment/portion/window may involve pattern segmentation (e.g., toaddress distortion) and decoding of the perceived segment/portion/windowinto a corresponding code(s). Additionally, triangulation may be appliedover each captured segment/portion/window to ascertain an orientationand/or depth. Multiple such segments/portions/windows may be combined tostitch together a captured image pattern. In this manner, a depth map207 may be generated for the scene, target, or object 206.

FIG. 3 illustrates how depth may be sensed for an object or scene. Here,a transmitter 302 is on the same baseline reference plane as thereceiver 304. The transmitter projects a code mask 310 onto a scene orobject through an aperture or lens. Here, for purposes of illustration,a projected segment/portion/window 312 (representing a codeword) isshown as part of the transmitted code mask 310. This codesegment/portion/window 312 may be projected on a scene or object 306 ata first distance or at a second distance. The receiver 304 captures theprojected code mask 310 through a receiver aperture. It can beappreciated that when the scene or object 306 is located closer (e.g., afirst distance from the transmitter) the projected segment 312 appearsat a distance d1 from its initial location. Meanwhile, when the scene orobject 308 is located further away (e.g., a second distance from thetransmitter), the projected segment/portion/window 312 appears at adistance d2 from its initial location (where d2<d1). That is, thefurther away an object is from the transmitter/receiver (e.g.,transmitter 302 to scene or object 308), the closer the receivedprojected segment/portion/window is from its original position at thereceiver (e.g., the outgoing projection and incoming projection are moreparallel). Conversely, the closer an object is from thetransmitter/receiver (e.g., transmitter 302 to scene or object 306), thefurther the received projected segment/portion/window is from itsoriginal position at the receiver. Thus, the difference between receivedand transmitted codeword position gives the depth of the scene orobject. In one example, such depth (e.g., relative depth) may provide adepth for each pixel or subset of grouped pixels (e.g., regions of twoor more pixels).

Various types of modulation and coding schemes have been conceived togenerate a code mask. These modulation and coding schemes includetemporal coding, spatial coding, and direct codification.

FIG. 4 illustrates an exemplary code mask 400 that uses three gray-scalelevels (e.g., black, white, and a gray). In this example, black is usedfor a guard interval and white/gray are used for the code/referencestripes.

The image obtained with a receiver sensor 208 (e.g., camera) is formedby incident light coming from the reflection of the light source ontothe scene. The intensity of the incident light may depend on: (a) thereflectance properties of the surfaces in the scene, (b) the power ofthe light that generates the projected pattern, and/or (c) ambientlight. If the incident light on the camera sensor is too strong, itsaturates the sensor. If it is too weak, the receiver 208 (e.g., camerasensor) does not capture the variations in reflectivity of the scene.Even within a scene, depending on the type of surfaces being captured inan image, both situations (e.g., captured light too strong and too weak)can happen at the same time. If no adjustment to the strength ofincident light is included in the system, it is difficult to capture thevariations in illumination of the projected pattern (e.g., code mask)for a wide range of situations (different ambient lights, differentpre-set power of the light source, different surface types).

Various solutions are provided in which received light energy may beadjusted based on (a) camera sensor exposure time, and/or (b) projectedlight source power. One or more parameters are measured (e.g., pixelsaturation, undecodable pixels, pixel illumination mean, variance,and/or entropy, etc.) from the one or more captured images obtained at apreset or a range of exposure times (e.g., shutter times) and/orprojected light source powers (e.g., illumination strength). Theexposure time and/or projected light source power is then adjusted basedon the one or more parameters capture to capture an additional image forthe scene.

First Exemplary Solution—Received Light Energy Adjustment

According to a first exemplary solution, the light energy received by areceiver/camera sensor is controlled according to certain parametersmeasured from an acquired image.

FIG. 5 illustrates at least two methods for adjusting light energyreceived by a receiver sensor in an active depth sensing system usingstructured light. These methods may be implemented, for example, in oneor more components of the active sensing systems of FIGS. 2 and/or 8.

According to a first method (Method A), the exposure time of a receiversensor (camera) is adjusted to compensate for over-exposure and/orunder-exposure in an image used for active depth sensing. In thisapproach, exposure time for the receiver sensor is adjusted while thelight source power is kept fixed.

A pre-defined exposure time is obtained for the receiver sensor 502 a. Aprojection light source then projects at least a portion of a code maskonto a scene (e.g., target) to be captured 504 a. The receiver sensor,at the pre-defined exposure time, then captures an image of the sceneonto which the code mask is projected 506 a.

One or more parameters may then be ascertained from the captured image508. For instance, the parameters may include: (a) information relatedstatistics, i.e., pixel illumination mean, variance, entropy, (b) anumber of saturated pixels at the receiver sensor, and/or (c) a numberof pixels where the projected code mask was unable to be decoded.

The exposure time for the sensor receiver may then be increased ordecreased according to the one or more parameters 510 a. That is, if theone or more parameters indicate over-saturation of the receiver sensorpixels, then the light source power is decreased. Otherwise, if the oneor more parameters indicate under-exposure of the receiver sensorpixels, then the light source power is increased.

The projection light source again or continues to project (e.g., at itsoriginal light source power) at least a portion of the code mask ontothe scene to be captured 512 a. The receiver sensor now captures, at theadjusted exposure time, a new image of the scene onto which the codemask is projected 514 a. Depth information for the scene may then beascertained from the code mask in the new image 516.

According to a second method (Method B), the light source power for aprojector (of the code mask) is adjusted to compensate forunder-lighting and/or over-lighting in an image used for active depthsensing. In this approach, exposure time for the receiver sensor is keptfixed while the light source power is adjusted.

A pre-defined light source power is obtained for a light source 502 b.The projection light source then projects at least a portion of a codemask onto a scene to be captured 504 b. A receiver sensor then capturesan image of the scene onto which the code mask is projected 506 b.

One or more parameters may then be ascertained from the captured image508. For instance, the parameters may include: (a) information relatedstatistics, i.e., mean, variance, entropy, (b) a number of saturatedpixels at the receiver sensor, and/or (c) a number of pixels where theprojected code mask was unable to be decoded.

The light source power may then be adjusted (e.g., increased ordecreased) according to the one or more parameters 510 b. That is, ifthe one or more parameters indicate over-saturation of the receiversensor pixels, then the light source power is decreased. Otherwise, ifthe one or more parameters indicate under-exposure of the receiversensor pixels, then the light source power is increased.

The projection light source may project at least a portion of the codemask onto the scene to be captured 512 b. The receiver sensor thencaptures a new image of the scene onto which the code mask is projected514 b. Depth information for the scene may then be ascertained from thecode mask in the new image 516.

According to various implementations, the receiver sensor exposure timeand/or the light source power may be adjusted, alone or in combination.For instance, if the number of saturated pixels of the receiver sensoris above a certain threshold, the exposure time of the receiver sensoris decreased or the power of the light source is decreased. In anotherexample, if the number of black codes measured in the code mask in thecaptured image is above a certain threshold, the exposure time of thereceiver sensor is increased and/or the power of the light source isincreased.

According to an alternative approach, the one or more parameters may beobtained over more than one image (e.g., acquired at the same time bymultiple receiver sensors or acquired at several instances by the samereceiver sensor). In one example, different exposure times may be usedon a plurality of different receiver sensors (e.g., cameras).

According to another alternative approach, ‘saturated regions’ or ‘blackregions’ may be tracked across captured images and only use theseregions for the measurement of the one or more parameters. Thisvariation may provide some computational advantages in that it reducesthe regions from which parameters are obtained.

In some implementations, a receiver device may be coupled to thereceiver sensor and a projecting light source to perform the method(s)illustrated in FIG. 5. In such implementations, the receiver device mayascertain the one or more parameters from the captured image. Then, itmay cause the light source power for the projecting light source to bedynamically adjusted to improve decoding of the code mask in asubsequently captured image.

Second Exemplary Solution—Receiver Dynamic Range Adjustment

According to a second exemplary solution, the light energy received by areceiver/camera sensor is controlled based on certain parametersmeasured from an acquired image at different exposure times andcombined.

FIG. 6 illustrates at least two methods for adjusting light energyreceived by a receiver sensor in an active depth sensing system usingstructured light. These methods may be implemented, for example, in oneor more components of the active sensing systems of FIGS. 2 and/or 8.These methods are similar to those illustrated in FIG. 5 but a pluralityof images is initially captured at different exposure times and/orsource light powers. Portions from two or more of the plurality ofimages may be combined according to a high dynamic range (HDR)algorithm. The combined image may extract the portions of two or more ofthe plurality of images from which codewords in the projected code maskcan be perceived (e.g., from which patterns in the code mask can berecognized).

According to a third method (Method C), the exposure times of one ormore receiver sensor(s) (camera) is adjusted to compensate forover-exposure and/or under-exposure in an image used for active depthsensing. In this approach, exposure times for the receiver sensor(s) isadjusted while the light source power is kept fixed.

A plurality of pre-defined exposure times is obtained for the receiversensor(s) 602 a. A projection light source then projects at least aportion of a code mask onto a scene to be captured 604 a. The receiversensor, at the pre-defined exposure time, then captures a plurality ofimages (e.g., one for each pre-defined exposure time) of the scene ontowhich the code mask is projected 606 a.

One or more parameters may then be ascertained for each of the capturedimages 608. For instance, the parameters may include: (a) informationrelated statistics, i.e., mean, variance, entropy, (b) a number ofsaturated pixels at the receiver sensor, and/or (c) a number of pixelswhere the projected code mask was unable to be decoded.

The receiver sensor settings for the acquisition of the set of imagesinvolved in the High Dynamic Range (HDR) algorithm may be dynamicallychanged based on the one or more parameters. For instance, the exposuretimes of one or more of the receive sensor(s) used for each imageacquisition may, optionally, be adjusted according to the measuredparameters 612 a. Two or more of the captured images may then becombined (e.g., according to an HDR algorithm) by extracting decodableportions of the code mask from each image 614. Depth information for thescene may be ascertained from the code mask in the combined image 616.

In a scene that includes object surfaces of differentreflectivity/absorption coefficients, the combination of images taken atdifferent exposure times may serve to properly capture these objects,but at different exposure times for the receiver sensor. For instance, afirst image taken with a first exposure time may properly capture thecode mask projected on some objects of a scene but fail to properlycapture the code mask projected on other objects of the same scene. Asecond image taken by the receiver sensor (or a different receiversensor) at a second exposure time may properly capture the code maskprojected on the other objects of the same scene. Therefore, bycombining portions of two or more images taken at different exposurestimes, a combined image made up of the decodable portions of the codemask taken from the two or more images may be obtained.

According to a fourth method (Method D), the light source power controlof one or more receiver sensor(s) (camera) is adjusted to compensate forover-exposure and/or under-exposure in an image used for active depthsensing. This approach is largely the same as Method C, but in step 612b the light source power is adjusted (instead of the exposure times)according to the one or more parameters.

Third Exemplary Solution—Selective Light Source Power Adjustment

According to a third exemplary solution, the light source power islocally/selectively controlled across different regions to adapt tovarying reflectivity/absorption coefficients of the surfaces in thescene. That is, the light source may include a plurality of lightelements that can be independently controlled so that different regionsof the scene may be illuminated differently depending on thereflectivity/absorption of surfaces in the scene. Consequently, thelight intensity in each region of the scene may be adjusted according tothe reflectivity/absorption coefficients of the surfaces of objects ineach such region of the scene.

FIG. 7 illustrates another method for adjusting light energy received bya receiver sensor in an active depth sensing system using structuredlight. This method may be implemented, for example, in one or morecomponents of the active sensing systems of FIGS. 2 and/or 8. A firstexample (Method E) assumes that the projection light source is made upof a plurality of light elements (e.g., light emitting diodes arrangedin a matrix configuration, etc.) whose intensity can be individuallycontrolled. A second example (Method F) assumes that a plurality ofreceiver sensor shutters can be individually controlled to adjust theamount of light that each corresponding receiver sensor receives.

A uniform (pre-defined) light source power for the projection lightsource is obtained 702. According the first exemplary method (Method E),the projection light source comprises a plurality of light elements andprojects at least a portion of a code mask, using the uniform lightsource power, onto a scene to be captured 704 a. According to the secondmethod (Method F), the projection light source projects at least aportion of a code mask, using the uniform light source power, onto ascene to be captured 704 b. A receiver sensor then captures an image ofthe scene onto which the code mask is projected 706.

One or more parameters may then be ascertained for each of the pluralityof regions within the captured image 708. Such regions may correspond toan area covered by a single light element or a sub-set of lightelements. Such light elements may provide highly parallelized lightbeams, for example, such that there is minimal cross-over between lightelements. The parameters obtained may include: (a) information relatedstatistics, i.e., mean, variance, entropy, (b) a number of saturatedpixels at the receiver sensor, and/or (c) a number of pixels where theprojected code mask was unable to be decoded.

According to the first example (Method E), each element of the lightsource power may then be individually adjusted/controlled (e.g.,increased or decreased) based on the corresponding one or moreparameters 710 a. That is, if the one or more parameters indicateover-saturation of the receiver sensor pixels corresponding to a firstregion, then the light source power for the corresponding light elementis decreased. Likewise, if the one or more parameters indicateunder-exposure of the receiver sensor pixels for a second region, thelight source power for the corresponding light element is increased.After individually adjusting/controlling each light element power, thecode mask may again be projected by the projection light source 712 a.

According to the alternative second example (Method F), at least aportion of the code mask may be projected onto a plurality of differentregions of the scene to be captured using the projection light source atthe uniform light source power 710 b. A plurality of receiver sensorshutters may be individually controlled based on the corresponding oneor more parameters to adjust the light captured by the receiver sensor712 b. This may allow varying the amount of light captured by thereceiver sensor(s) for each of the plurality of regions.

The receiver sensor may then capture a new image of the scene onto whichthe code mask is projected 714. Depth information may then beascertained for the scene from the code mask in the new image 716.

These approaches adjust to variations in the strength of the incidentlight for the case where very different reflectance materials are partof the same scene. In Method E, since the intensity/power of each lightelement of the projection light source is individually controlled,individual regions of a scene can be illuminated at different lightintensities concurrently. This provides better granularity in theadjustment of projected light (and power consumption) to the particularrequirements of the scene. HDR may be achieved without the need tocombine several images; consequently, higher frame rates are possible.Similarly, rather than adjusting the projected light power/intensity, inMethod F the amount of light received by the receiver sensor(s) may beadjusted by individually controlling a plurality of receiver shutters.This allows to reducing the amount of light received in some regionsand/or increasing the amount of light received in other regions.

Exemplary Depth Sensing System

FIG. 8 illustrates an exemplary depth sensing system 800 usingstructured light that dynamically adjusts for differentreflectivity/absorption coefficients of the surfaces of objects in ascene being captured. A code mask projecting device 808 may serve toproject a code mask (e.g., using a light source) onto a scene 802 ofinterest. A receiver sensor 806 (e.g., camera) captures incident lightcoming from the reflection of the light source onto the scene 802 toobtain an image that includes at least a portion of the code mask asreflected by the scene 802. An active depth sensing device 804 may becoupled to the light projecting device (light source) 808 and/or thereceiver sensor 806 and may be configured to dynamically adjust theexposure time for the receiver sensor 806 and/or the light source powerfor the projecting device 808. The active depth sensing device 804 mayinclude a processing circuit 805 and/or a storage device 809. Theprocessing circuit 805 may include or implement a parameter computationmodule/circuit 810, an exposure time adjustment module/circuit 812, alight power adjustment module/circuit 814, and/or a depth calculationmodule/circuit 816. These modules/circuits may be adapted to perform oneor more functions describe and/or illustrated in FIGS. 5, 6, and/or 7.The storage device 809 may serve to, for example, store one or moreadjustment parameters for the receiver sensor 806 and/or code maskprojecting device 808.

The parameter computation module/circuit 810 may include an inputinterface through which it may receive one or more captured images(e.g., images of a scene or object with a code mask projected thereon)from the receiver sensor 806. The parameter computation module/circuit810 may also include one or more image processing circuits thatascertain absolute or relative pixel saturation, undecodable pixels,pixel illumination mean, variance, and/or entropy, etc., for each of theone or more captured images received. These one or more parameters maybe computed for the whole image and/or for regions (e.g., sectors,pixels) of each image. These one or more parameters may serve as inputsto the exposure time adjustment module/circuit 812 and/or the lightpower adjustment module/circuit 814.

The exposure time adjustment module/circuit 812 may use the one or moreparameters to ascertain whether an exposure time for the receiver sensor806 should be adjusted and how it should be adjusted. For example, ifthe one or more parameters indicate that a percentage of pixels greaterthan a threshold percentage are over-saturated (i.e., too muchillumination), then the exposure time adjustment module/circuit 812reduces the shutter time for the receiver sensor 806. Conversely, if theone or more parameters indicate that a percentage of pixels greater thana threshold percentage are under-exposed (i.e., too littleillumination), then the exposure time adjustment module/circuit 812increases the shutter time for the receiver sensor 806. Similarly, otherthresholds for undecodable pixels, pixel illumination mean, variance,and/or entropy, etc., may be used to ascertain if and/or how thereceiver sensor should be adjusted. The exposure time adjustmentmodule/circuit 812 may include an output interface that permits it tocommunicate such adjustments to the receiver sensor 806.

The light power adjustment module/circuit 814 may use the one or moreparameters to ascertain whether an illumination power for the code maskprojecting device 808 should be adjusted and how it should be adjusted.For example, if the one or more parameters indicate that a percentage ofpixels greater than a threshold percentage are over-saturated (i.e., toomuch illumination), then light power adjustment module/circuit 814reduces the light source (illumination) power for the projecting device808. Conversely, if the one or more parameters indicate that apercentage of pixels greater than a threshold percentage areunder-exposed (i.e., too little illumination), then the light poweradjustment module/circuit 814 increases the light source (illumination)power for the projecting device 808. Similarly, other thresholds forundecodable pixels, pixel illumination mean, variance, and/or entropy,etc., may be used to ascertain if and/or how the receiver sensor shouldbe adjusted. The light power adjustment module/circuit 814 may includean output interface that permits it to communicate such adjustments tothe receiver sensor 806.

The depth calculation module/circuit 816 may use a code mask that isprojected on a scene or object in one or more captured images (e.g.,images of a scene or object with a code mask projected thereon) from thereceiver sensor 806 to ascertain a depth. The depth calculationmodule/circuit 816 may perform one or more computations, as illustratedin FIGS. 2 and 3 for example, to ascertain a depth for different regionsor groups of pixels of an image. This depth information for the imagemay then be stored along with the image.

According to another alternate feature, a first receiver device may beused to control the light power and a separate second receiver devicemay be used to capture the image from which a depth map is obtained. Forexample, the first receiver device may be a lower resolution sensor(relative to the second receiver device) that runs at anincreased/higher frame rate.

In some implementations, the code mask projecting device 808 may projectthe code mask in a light spectrum not visible by humans (e.g.,infrared). For example, a first receiver may be used to capture the codemask projected on a scene or object while a second receiver may be usedto capture an image of the scene or object without the code mask.

In some implementations, the depth sensing system 800 may be considereda feedback system, where upon projection of the code mask, thereflection of the code mask (or portion thereof) is captured as an imageby the receiver sensor 806 which may adjust the projecting light sourcepower for the projecting device 808 Thus, an initial projection of thecode mask may serve as feedback to adjust the depth sensing system 800so that codewords in the projected and reflected code mask can becorrectly ascertained. If the initial captured image by the receiversensor 806 has parameters that indicate saturation (e.g., light powertoo strong for receiver sensor), then the light power adjustmentmodule/circuit 814 may reduce the projecting light source power of theprojecting device 808. Similarly, if the initial captured image by thereceiver sensor 806 has parameters that indicate under exposure (e.g.,light power too weak for receiver sensor), then the light poweradjustment module/circuit 814 may increase the projecting light sourcepower of the projecting device 808. This process may be repeatedmultiple times until an acceptable projecting light power is achievedthat results in the parameters for a captured image to be within a rangeor threshold. In one example, the feedback process may be iterative,using incremental steps (e.g., fixed or variable adjustment steps) toincrease/decrease the projecting light power of the projecting device808. In another example, the parameters obtained for an initial(previous) captured image may serve to compute or estimate a particularpower adjustment which is then used to adjust the projecting device 808.

In alternative implementations, this feedback system may serve to adjustan exposure time for the receiver sensor 806. That is, rather thanadjusting the projecting light power, the receiver sensor 806 may adjustits own shutter exposure time, by increasing shutter time if an underexposure is ascertained from an initial captured image or decreasing ashutter time if an over exposure (saturation) is ascertained from aninitial captured image. This may be an iterative process in whichshutter exposure time may be incrementally adjusted by a fixed/variablestep size, or based on an estimate ascertained from the parameters of acaptured image.

Ascertaining Parameters for Captured Image(s)

In FIGS. 5, 6, and/or 7, in order to adjust the receiver sensor and/orprojecting light source, the captured image(s) is processed to ascertainwhether the code mask (and code words therein) are decodable across thecaptured image. An example of a code mask is illustrated in FIG. 4.FIGS. 9 and 10 further illustrate how code words are defined within codemasks.

FIG. 9 illustrates how a binary codeword 902 may be represented within ashape modulated carrier 904. The modulated carrier 904 may includecode/reference stripes 906 (e.g., active stripes) and guard intervals908. The carrier layer 902 may be defined by an active stripe width w1and a guard interval w2. The active stripe width w1 may be determined bypower requirements on the transmitter. The guard interval w2 may bedetermined by transmitter/receiver Point Spread Function (PSF). Here, atri-state gray-scale system is used to represent the guard, “0” and “1”,where the “0” and “1” levels ratio may be 50%.

FIG. 10 illustrates further details of the code microstructure 1002using a carrier layer and code layer. In this example, the size of thecode mask may be n1×n2, where n1=7 (vertical), n2=585 (horizontal), suchthat a total of 4095 unique codewords are possible. Smaller codebooksare possible by using a subset of these codewords. Smaller codebooks maybe desirable in that it reduces the number of comparisons that must beperformed to ascertain whether a codeword match is found. That is, areceived/captured code mask may be compared to the codebook used toascertain each codeword therein. Such comparison may involve matching aregion of the received/captured code mask each codeword defined in thecodebook to ascertain a match (e.g., or closest match). Consequently,reducing the size of the codebook (e.g., using a small number ofcodewords) reduces the number of comparisons needed to find a codewordmatch and reduces the processing resources and/or time to find codewordmatches for the received/captured code mask.

The size of a code mask window (e.g., k1×k2 window) used for a codewordmay be dependent on the minimum detectable object sought. For example,the code mask window may be a k₁×k₂=3×4 symbol window. Hence, the windowsize is defined by the minimum detectable object size (e.g., detectableobject or feature) and distance at which such object detection occurs.Additionally, depth resolution may be equal to carrier spacing. Theguard interval is countermeasure against unknown spreading. The selectedparameters may provide a balance between resolution and detection.

Since the code mask projected on a scene to generate a particular imageis known, this can be used to obtain a mean square error, Hammingdistance, and/or other metrics/parameters that may serve to indicate howto adjust the exposure time and/or light source power.

In some implementations, the careful selection of codewords may alsoserve to perform error correction of captured code words in an image.

One or more of the components, steps, features and/or functionsillustrated in the FIGS. may be rearranged and/or combined into a singlecomponent, step, feature or function or embodied in several components,steps, or functions. Additional elements, components, steps, and/orfunctions may also be added without departing from novel featuresdisclosed herein. The apparatus, devices, and/or components illustratedin the FIGS. may be configured to perform one or more of the methods,features, or steps described in the FIGS. The novel algorithms describedherein may also be efficiently implemented in software and/or embeddedin hardware.

Also, it is noted that the embodiments may be described as a processthat is depicted as a flowchart, a flow diagram, a structure diagram, ora block diagram. Although a flowchart may describe the operations as asequential process, many of the operations can be performed in parallelor concurrently. In addition, the order of the operations may bere-arranged. A process is terminated when its operations are completed.A process may correspond to a method, a function, a procedure, asubroutine, a subprogram, etc. When a process corresponds to a function,its termination corresponds to a return of the function to the callingfunction or the main function.

Moreover, a storage medium may represent one or more devices for storingdata, including read-only memory (ROM), random access memory (RAM),magnetic disk storage mediums, optical storage mediums, flash memorydevices and/or other machine-readable mediums, processor-readablemediums, and/or computer-readable mediums for storing information. Theterms “machine-readable medium”, “computer-readable medium”, and/or“processor-readable medium” may include, but are not limited tonon-transitory mediums such as portable or fixed storage devices,optical storage devices, and various other mediums capable of storing,containing or carrying instruction(s) and/or data. Thus, the variousmethods described herein may be fully or partially implemented byinstructions and/or data that may be stored in a “machine-readablemedium”, “computer-readable medium”, and/or “processor-readable medium”and executed by one or more processors, machines and/or devices.

Furthermore, embodiments may be implemented by hardware, software,firmware, middleware, microcode, or any combination thereof. Whenimplemented in software, firmware, middleware or microcode, the programcode or code segments to perform the necessary tasks may be stored in amachine-readable medium such as a storage medium or other storage(s). Aprocessor may perform the necessary tasks. A code segment may representa procedure, a function, a subprogram, a program, a routine, asubroutine, a module, a software package, a class, or any combination ofinstructions, data structures, or program statements. A code segment maybe coupled to another code segment or a hardware circuit by passingand/or receiving information, data, arguments, parameters, or memorycontents. Information, arguments, parameters, data, etc. may be passed,forwarded, or transmitted via any suitable means including memorysharing, message passing, token passing, network transmission, etc.

The various illustrative logical blocks, modules, circuits, elements,and/or components described in connection with the examples disclosedherein may be implemented or performed with a general purpose processor,a digital signal processor (DSP), an application specific integratedcircuit (ASIC), a field programmable gate array (FPGA) or otherprogrammable logic component, discrete gate or transistor logic,discrete hardware components, or any combination thereof designed toperform the functions described herein. A general purpose processor maybe a microprocessor, but in the alternative, the processor may be anyconventional processor, controller, microcontroller, or state machine. Aprocessor may also be implemented as a combination of computingcomponents, e.g., a combination of a DSP and a microprocessor, a numberof microprocessors, one or more microprocessors in conjunction with aDSP core, or any other such configuration.

The methods or algorithms described in connection with the examplesdisclosed herein may be embodied directly in hardware, in a softwaremodule executable by a processor, or in a combination of both, in theform of processing unit, programming instructions, or other directions,and may be contained in a single device or distributed across multipledevices. A software module may reside in RAM memory, flash memory, ROMmemory, EPROM memory, EEPROM memory, registers, hard disk, a removabledisk, a CD-ROM, or any other form of storage medium known in the art. Astorage medium may be coupled to the processor such that the processorcan read information from, and write information to, the storage medium.In the alternative, the storage medium may be integral to the processor.

Those of skill in the art would further appreciate that the variousillustrative logical blocks, modules, circuits, and algorithm stepsdescribed in connection with the embodiments disclosed herein may beimplemented as electronic hardware, computer software, or combinationsof both. To clearly illustrate this interchangeability of hardware andsoftware, various illustrative components, blocks, modules, circuits,and steps have been described above generally in terms of theirfunctionality. Whether such functionality is implemented as hardware orsoftware depends upon the particular application and design constraintsimposed on the overall system.

The various features of the invention described herein can beimplemented in different systems without departing from the invention.It should be noted that the foregoing embodiments are merely examplesand are not to be construed as limiting the invention. The descriptionof the embodiments is intended to be illustrative, and not to limit thescope of the claims. As such, the present teachings can be readilyapplied to other types of apparatuses and many alternatives,modifications, and variations will be apparent to those skilled in theart.

What is claimed is:
 1. A device adapted to compensate for differences insurface reflectivity in an active depth sensing system using structuredlight, the device comprising: a receiver sensor configured to capture afirst code mask image and a second code mask image of a scene onto whicha structured light pattern is projected using a light source, thestructured light pattern encoding a plurality of codewords, the firstcode mask image captured using a first exposure time and the second codemask image captured using a second exposure time; and a processingcircuit configured to: detect a number of pixels of an undecodableregion of the first code mask image, the undecodable regioncorresponding to a portion of the first code mask image in which norecognized codeword is detected; determine the second exposure time forthe receiver sensor to capture the second code mask image, wherein thesecond exposure time is based on the number of pixels and an indicationrepresenting a threshold percentage of pixels; extract first pixelscorresponding to first decodable codewords from the first code maskimage and second pixels corresponding to second decodable codewords fromthe second code mask image; generate a third code mask image thatincludes the first extracted pixels and the second extracted pixels; andascertain depth information for the scene based on a difference betweena first position of a codeword in the structured light pattern and asecond position of the codeword detected in the third code mask image.2. The device of claim 1, wherein: the indication is a percentage, afirst decodable portion of the first code mask image includes a firstdecodable spatial code portion of the first code mask image, a seconddecodable portion of the second code mask image includes a seconddecodable spatial code portion of the second code mask image, and theprocessing circuit is further configured to detect the second positionof the codeword in the third code mask image.
 3. The device of claim 1,wherein: the processing circuit is further configured to ascertain oneor more parameters from the first code mask image and the second codemask image and adjust a third exposure time for the receiver sensorbased on the one or more parameters, and each codeword comprises aunique code portion.
 4. The device of claim 3, wherein: the receiversensor is further configured to: capture, using the third exposure time,a fourth code mask image of the scene onto which the structured lightpattern is projected; and capture, using a fourth exposure time, a fifthcode mask image of the scene onto which the structured light pattern isprojected, wherein the fourth exposure time is selected to reduce overexposure in the fourth code mask image or to reduce under exposure inthe fourth code mask image; and the processing circuit is furtherconfigured to combine a portion of the fourth code mask image and aportion of the fifth code mask image to determine the depth informationfor the scene, the portion of the fourth code mask image including adecodable spatial code portion of the structured light pattern, and theportion of the fifth code mask image including another decodable spatialcode portion of the structured light pattern.
 5. The device of claim 1,wherein the processing circuit is further configured to ascertain, fromthe first code mask image, a number of undecodable pixels in theundecodable region, and wherein the second exposure time is determinedbased on whether the number of undecodable pixels satisfies thethreshold percentage.
 6. A method to compensate for differences insurface reflectivity in an active depth sensing system using structuredlight, the method comprising: obtaining, from a receiver sensor, a firstcode mask image of a scene onto which a structured light pattern isprojected using a light source, the structured light pattern encoding aplurality of codewords, the first code mask image captured using a firstexposure time; detecting a number of pixels of an undecodable region ofthe first code mask image, the undecodable region corresponding to aportion of the first code mask image in which no recognized codeword isdetected; determining a second exposure time for the receiver sensor tocapture a second code mask image of the scene, wherein the secondexposure time is based on the number of pixels and an indicationrepresenting a threshold percentage of pixels; obtaining, from thereceiver sensor, the second code mask image onto which the structuredlight pattern is projected using the light source, the second code maskimage captured using the second exposure time; extracting first pixelscorresponding to first decodable codewords from the first code maskimage and second pixels corresponding to second decodable codewords fromthe second code mask image; generating a third code mask image thatincludes the first extracted pixels and the second extracted pixels; andascertaining depth information for the scene based on a differencebetween a first position of a codeword in the structured light patternand a second position of the codeword detected in the third code maskimage.
 7. The method of claim 6, wherein the indication is a percentage,and wherein a first decodable portion of the first code mask imageincludes a first decodable codeword of the structured light pattern anda second decodable portion of the second code mask image includes asecond decodable codeword of the structured light pattern.
 8. The methodof claim 6, further comprising: ascertaining one or more parametersbased on the first code mask image and the second code mask image; andreducing a third exposure time for the receiver sensor based on aparameter of the one or more parameters exceeding a threshold.
 9. Themethod of claim 6, further comprising: ascertaining one or moreparameters based on the first code mask image and the second code maskimage; and increasing a third exposure time for the receiver sensorbased on a parameter of the one or more parameters exceeding athreshold.
 10. The method of claim 6, wherein detecting the number ofpixels comprises ascertaining a number of undecodable pixels in theundecodable region, and wherein the second exposure time is determinedbased on whether the number of undecodable pixels satisfies thethreshold percentage.
 11. A device adapted to compensate for differencesin surface reflectivity in an active depth sensing system usingstructured light, the device comprising: means for capturing a firstcode mask image and a second code mask image of a scene onto which astructured light pattern is projected, the structured light patternencoding a plurality of codewords, the first code mask image capturedusing a first exposure time and the second code mask image capturedusing a second exposure time; means for detecting a number of pixels ofan undecodable region of the first code mask image, the undecodableregion corresponding to a portion of the first code mask image in whichno recognized codeword is detected, wherein the second exposure time isbased on the number of pixels and an indication representing a thresholdpercentage of pixels; means for extracting first pixels corresponding tofirst decodable codewords from the first code mask image and secondpixels corresponding to second decodable codewords from the second codemask image; means for generating a third code mask image that includesthe first extracted pixels and the second extracted pixels; and meansfor ascertaining depth information for the scene based on a differencebetween a first position of a codeword in the structured light patternand a second position of the codeword detected in the third code maskimage.
 12. The device of claim 11, further comprising means forprojecting the structured light pattern, wherein the indication is apercentage, and wherein the means for capturing includes a firstreceiver sensor configured to capture the first code mask image andincludes a second receiver sensor configured to capture the second codemask image.
 13. The device of claim 11, further comprising: means forascertaining one or more parameters based on the first code mask image,the second code mask image, or both; and means for dynamically adjustinga third exposure time for the means for capturing based on the one ormore parameters.
 14. The device of claim 13, wherein the one or moreparameters include pixel illumination mean, pixel illumination variance,pixel illumination entropy, a number of saturated pixels, a number ofover-saturated pixels, a number of under-exposed pixels, a number ofpixels in which the structured light pattern is undecodable, or acombination thereof.
 15. A non-transitory processor-readable mediumstoring one or more instructions to compensate for differences insurface reflectivity in an active depth sensing system using structuredlight, wherein the one or more instructions, when executed by one ormore processors, cause the one or more processors to: obtain, from areceiver sensor, a first code mask image of a scene onto which astructured light pattern is projected, the structured light patternencoding a plurality of codewords, the first code mask image capturedusing a first exposure time; detect a number of pixels of an undecodableregion of the first code mask image, the undecodable regioncorresponding to a portion of the first code mask image in which norecognized codeword is detected; determine a second exposure time forthe receiver sensor to capture a second code mask image of the scene,wherein the second exposure time is based on the number of pixels and anindication representing a threshold percentage of pixels; obtain, fromthe receiver sensor, the second code mask image onto which thestructured light pattern is projected, the second code mask imagecaptured using the second exposure time; extract first pixelscorresponding to first decodable codewords from the first code maskimage and second pixels corresponding to second decodable codewords fromthe second code mask image; generate a third code mask image thatincludes the first extracted pixels and the second extracted pixels; andascertain depth information for the scene based on a difference betweena first position of a codeword in the structured light pattern and asecond position of the codeword detected in the third code mask image.16. The non-transitory processor-readable medium of claim 15, whereinthe indication is a percentage, and wherein the one or moreinstructions, when executed by the one or more processors, further causethe one or more processors to: determine that the second code mask imageis overexposed or underexposed; determine a third exposure time for thereceiver sensor to capture a fourth code mask image; and obtain thefourth code mask image using the third exposure time.
 17. Thenon-transitory processor-readable medium of claim 16, wherein the one ormore instructions, when executed by the one or more processors, furthercause the one or more processors to: determine that the fourth code maskimage is properly exposed; and combine a decodable portion of the firstcode mask image and a decodable portion of the fourth code mask image.18. The non-transitory processor-readable medium of claim 15, whereinthe second exposure time is based on a number of saturated pixels in thefirst code mask image.
 19. A device adapted to compensate fordifferences in surface reflectivity in an active depth sensing systemusing structured light, the device comprising: a first receiver sensorconfigured to capture a first code mask image of a scene onto which astructured light pattern is projected, the structured light patternencoding a plurality of codewords, the first code mask image based on afirst exposure time; a second receiver sensor configured to capture asecond code mask image of the scene onto which the structured lightpattern is projected, the second code mask image based on a secondexposure time; and a processing circuit configured to: detect a numberof pixels of an undecodable region of the first code mask image, theundecodable region corresponding to a portion of the first code maskimage in which no recognized codeword is detected; determine the secondexposure time for the second receiver sensor to capture the second codemask image, wherein the second exposure time is based on the number ofpixels and an indication representing a threshold percentage of pixels;extract first pixels corresponding to first decodable codewords from thefirst code mask image and second pixels corresponding to seconddecodable codewords from the second code mask image; generate a thirdcode mask image that includes the first extracted pixels and the secondextracted pixels; and ascertain depth information associated with thescene based on a difference between a first position of a codeword inthe structured light pattern and a second position of the codeworddetected in the third code mask image.
 20. The device of claim 19,wherein the indication is a percentage, and wherein the processingcircuit is further configured to ascertain one or more parameters basedon the first code mask image and the second code mask image and toadjust a third exposure time based on the one or more parameters. 21.The device of claim 19, wherein an illumination level of the structuredlight pattern is the same during capture of the first code mask imageand the second code mask image.
 22. A method to compensate fordifferences in surface reflectivity in an active depth sensing systemusing structured light, the method comprising: obtaining, from one ormore receiver sensors, a first code mask image of a scene onto which astructured light pattern is projected using a light source, thestructured light pattern encoding a plurality of codewords, the firstcode mask image captured by the one or more receiver sensors based on afirst exposure time; detecting a number of pixels of an undecodableregion of the first code mask image, the undecodable regioncorresponding to a portion of the first code mask image in which norecognized codeword is detected; determining a second exposure time forthe one or more receiver sensors to capture a second code mask image ofthe scene, wherein the second exposure time is based on the number ofpixels and an indication representing a threshold percentage of pixels;obtaining, from the one or more receiver sensors, the second code maskimage onto which the structured light pattern is projected using thelight source, the second code mask image captured using the secondexposure time; extracting first pixels corresponding to first decodablecodewords from the first code mask image and second pixels correspondingto second decodable codewords from the second code mask image;generating a third code mask image that includes the first extractedpixels and the second extracted pixels; and ascertaining depthinformation associated with the scene based on a difference between afirst position of a codeword in the structured light pattern and asecond position of the codeword detected in the third code mask image.23. The method of claim 22, wherein the indication is a percentage, andfurther comprising: ascertaining one or more parameters based on thefirst code mask image and the second code mask image; and adjusting athird exposure time based on the one or more parameters.
 24. The methodof claim 22, wherein an illumination level of the structured lightpattern is the same during capture of the first code mask image and thesecond code mask image.
 25. The method of claim 22, further comprisingdetermining whether the second code mask image is adequately exposedprior to combining a first decodable portion of the first code maskimage and a second decodable portion of the second code mask image. 26.A device adapted to compensate for differences in surface reflectivityin an active depth sensing system using structured light, the devicecomprising: first means for capturing a first code mask image of a sceneonto which a structured light pattern is projected, the structured lightpattern encoding a plurality of codewords, the first means for capturingconfigured to capture the first code mask image based on a firstexposure time; means for detecting a number of pixels of an undecodableregion of the first code mask image, the undecodable regioncorresponding to a portion of the first code mask image in which norecognized codeword is detected; second means for capturing a secondcode mask image of the scene onto which the structured light pattern isprojected, the second means for capturing configured to capture thesecond code mask image based on a second exposure time, wherein thesecond exposure time is based on the number of pixels and an indicationrepresenting a threshold percentage of pixels; means for extracting afirst decodable portion of the first code mask image and a seconddecodable portion of the second code mask image; means for combining thefirst decodable portion and the second decodable portion to generate athird code mask image associated with the scene; and means forascertaining depth information for the scene based on a differencebetween a first position of a codeword in the structured light patternand a second position of the codeword detected in the third code maskimage.
 27. The device of claim 26, further comprising means forprojecting the structured light pattern, wherein the indication is apercentage, and wherein the third code mask image includes firstextracted pixels corresponding to first decodable codewords from thefirst code mask image and second extracted pixels corresponding tosecond decodable codewords from the second code mask image.
 28. Thedevice of claim 26, wherein an illumination level of the structuredlight pattern is the same during capture of the first code mask imageand the second code mask image.
 29. A non-transitory processor-readablemedium storing one or more instructions to compensate for differences insurface reflectivity in an active depth sensing system using structuredlight, wherein the one or more instructions, when executed by one ormore processors, cause the one or more processors to: obtain, from afirst receiver sensor, a first code mask image of a scene onto which astructured light pattern is projected, the structured light patternencoding a plurality of codewords; determine an exposure time for asecond receiver sensor to capture a second code mask image of the scene,wherein the exposure time is based on a detected number of pixels of anundecodable region of the first code mask image and an indicationrepresenting a threshold percentage of pixels; obtain, from the secondreceiver sensor, the second code mask image onto which the structuredlight pattern is projected, the second code mask image generated basedon the exposure time; extract first pixels corresponding to firstdecodable codewords from the first code mask image and second pixelscorresponding to second decodable codewords from the second code maskimage; generate a third code mask image that includes the firstextracted pixels and the second extracted pixels; and ascertain depthinformation associated with the scene based on a difference between afirst position of a codeword in the structured light pattern and asecond position of the codeword detected in the third code mask image.30. The non-transitory processor-readable medium of claim 29, whereinthe indication is a percentage, and wherein the one or moreinstructions, when executed by the one or more processors, further causethe one or more processors to ascertain one or more parameters based onthe first code mask image and the second code mask image and to adjust asecond exposure time based on the one or more parameters.
 31. Thenon-transitory processor-readable medium of claim 29, wherein the firstcode mask image and the second code mask image are generatedcontemporaneously.
 32. The non-transitory processor-readable medium ofclaim 29, wherein an illumination level of the structured light patternis the same during generation of the first code mask image and thesecond code mask image.